package com.example.lvsuo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface DetailsMapper {
    @Select("  select COLUMN_NAME,COLUMN_COMMENT from information_schema.columns where table_name=#{data_table} and table_schema='lvsuo' ")
    List<Map<String, Object>> QueryDetails(Map<String, Object> map);

    @Select(" select * from ${data_table} where id = #{data_column} ")
    List<Map<String, Object>> QueryData(Map<String, Object> map);
}
